const prodConfig = require("./webpack.prod");
module.exports = {
	...prodConfig,
	devServer: {
		// 配置host
		host:"zhangpeiyue.com",
		// 端口号
		port:80,
		// 自动打开浏览器
		open:true,
		proxy:{
			// https://i.maoyan.com/api/mmdb/movie/v3/list/hot.json
			// "/api":{
			// 	target:"https://i.maoyan.com",
			// 	changeOrigin:true,
			// }

			// https://i.maoyan.com/api/mmdb/movie/v3/list/hot.json
			"/my":{
				target:"https://i.maoyan.com",
				changeOrigin:true,
				pathRewrite:{
					"^/my":""
				}
			}
		}
	},
	devtool:'eval-cheap-module-source-map',// 原始源代码（仅限行）
	mode:"development"
}